Migration steps to upgrade to cartridge version 23.5.x.
steptypes.json
)AlgoliaCategoriesIndex
- for indexing the category treeAlgoliaProductsIndex
- for indexing product data - both full catalog indexing and product delta updatesAlgoliaProductsDeltaExport
(v23.4.x only) - an earlier, sequential version of the v2 delta jobAlgoliaProductPricesExport
(v23.4.x only) - an earlier, sequential version of the v2 price jobAlgoliaProductInventoryExport
(v23.4.x only) - an earlier, sequential version of the v2 inventory jobsteptypes.json
)
AlgoliaCategoryIndex_v2
- for indexing the category treeAlgoliaProductIndex_v2
- for full catalog indexing (incl. full reindexing)AlgoliaProductDeltaIndex_v2
- for product delta updatesAlgoliaProductInventoryIndex_v2
- for indexing inventory data onlyAlgoliaProductPriceIndex_v2
- for indexing price data onlyid, primary_category_id, in_stock, price, categories
name, primary_category_id, in_stock, price, categories, image_groups, url
id
is always sent (as the objectID
field).name, short_description, long_description, price, brand, color, size, image_groups
short_description, long_description
AlgoliaCategoryIndex_v2
AlgoliaProductIndex_v2
AlgoliaProductDeltaIndex_v2
AlgoliaProductInventoryIndex_v2
AlgoliaProductPriceIndex_v2
algolia.http.search.write
- used by the v2 jobsAlgolia_AdditionalAttributes
(from Algolia_CustomFields
)mode="delete"
.
AlgoliaCategoriesIndex
AlgoliaProductsIndex
AlgoliaProductsDeltaExport
AlgoliaProductPricesExport
AlgoliaProductInventoryExport
algolia.http.api
(versions before v23.3.0) and related credentials and profilealgolia.http.export
(versions after v23.3.0) and related credentials and profilealgolia.http.ingestion
and related credentials and profileAlgolia_HostBase
Algolia_OCAPIClientID
Algolia_OCAPIClientPassword
Algolia_CustomFields
(renamed to Algolia_AdditionalAttributes
). You can remove Algolia_CustomFields
if you’re not planning on using the v1 jobs in the futuremode="delete"
upon import.algoliaProduct.js
(the data model) can now be found in algoliaLocalizedProduct.js
productIndexJob.js
(the main job logic) can now be found in algoliaProductIndex.js
AlgoliaProduct
model (algoliaProduct.js
).
For each product, this model generates a JSON object, where each attribute is an object containing values for each enabled site locale.
The final object looks like this:
AlgoliaLocalizedProduct
object (algoliaLocalizedProduct.js
) for each desired locale.
A typical record from this model looks like this:
getNextProductModel()
helperUpdateProductModel
object. This object is sent to the indexing middleware.algoliaProductIndex.js
file.
Thus, one of the main differences between v1 and v2 is the location of the loop handling the locales:
For v1 jobs, the loop is inside the AlgoliaProduct
model, when fetching a product attribute value:
metadata/algolia/meta
folder in the repository: system-objecttype-extensions.xml
and custom-objecttype-definitions.xml
metadata/algolia/jobs.xml
metadata/algolia.services.xml
short_description, long_description
.
AlgoliaCategoriesIndex
AlgoliaProductsIndex
algolia.http.api
and related credentials and profilealgolia.http.export
and related credentials and profilealgolia.http.ingestion
and related credentials and profileAlgolia_*
”. Remove the following site preferences:
Algolia_HostBase
Algolia_OCAPIClientID
Algolia_OCAPIClientPassword
Algolia_CustomFields
(renamed to Algolia_AdditionalAttributes
)
Algolia_CustomFields
if you’re not planning on using the v1 jobs in the futureOK
status.
Go to your Algolia dashboard and confirm that your indices were updated.